package net.joyphper.commons.exception;

import org.apache.log4j.Logger;

public class AppTranException extends Exception {
	
	private static final long serialVersionUID = 1L;
	protected static final Logger logger = Logger.getLogger(AppTranException.class);

	public AppTranException() {
		logger.error(this);
	}

	public AppTranException(String message) {
		super(message);
		logger.error(message);
	}

	public AppTranException(Throwable cause) {
		super(cause);
		logger.error(cause);
	}

	public AppTranException(String message, Throwable cause) {
		super(message, cause);
		logger.error(message, cause);
	}
}
